package com.hzncc.flowable_diboot.payment.vo;

import com.diboot.core.binding.annotation.*;
import com.diboot.iam.entity.IamUser;
import com.hzncc.flowable_diboot.payment.entity.PaymentCert;
import com.hzncc.flowable_diboot.payment.entity.PaymentRegister;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
* 回款凭证 VO定义
* @author MyName
* @version 1.0
* @date 2024-10-25
* Copyright © MyCorp
*/
@Getter @Setter @Accessors(chain = true)
public class PaymentCertListVO extends PaymentCert  {
private static final long serialVersionUID = 1195154026329966666L;

    /**
    * 创建人 关联信息
    */
    @BindField(entity = IamUser.class, field = "realname", condition = "this.create_by = id")
    private String createByLabel;

    /**
    * 更新人 关联信息
    */
    @BindField(entity = IamUser.class, field = "realname", condition = "this.update_by = id")
    private String updateByLabel;

    /**
     *回款登记 关联信息
     */
    @BindEntity(entity = PaymentRegister.class, condition = "this.payment_register_id = id",deepBind = true)
    private PaymentRegisterListVO paymentRegister;

}